package com.xjoyt.pay.share.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xjoyt.pay.constants.DateConstant;

/**
 * 银行信息
 * 
 * @author Administrator
 *
 */
@Entity
@Table(name = "t_bank")
public class Bank {

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid2")
	@Column(name = "bank_id", length = 36)
	public String id;

	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "added_date")
	@JsonFormat(pattern = DateConstant.DATE_TIME_FORMAT_PATTERN, timezone = "GMT+8")
	public Date addedDate;

	/**
	 * 银行行别代码
	 */
	@Column(name = "bank_no", length = 50)
	public String bankNo;

	/**
	 * 银行行号
	 */
	@Column(name = "bank_channel_no", length = 50)
	public String bankChannelNo;

	/**
	 * 银行名称
	 */
	@Column(name = "bank_name", length = 255)
	public String bankName;

	/**
	 * 省份
	 */
	@Column(name = "province", length = 50)
	public String province;

	/**
	 * 城市
	 */
	@Column(name = "city", length = 50)
	public String city;

	/**
	 * 清算行行号
	 */
	@Column(name = "clear_bank_channel_no", length = 50)
	public String clearBankChannelNo;

}
